#include "user_extern.h"

//0-select; 1-act
static uint8_t page = 0;
static uint8_t subidx = 0;

/****************************************
 *  名称： system_digimon_show_time
 *  功能： digimon 显示时间界面
 *  参数： 
 *  返回值：DIGI_VOID
 ****************************************/
uint8_t digi04_battle_display(void)
{
    uint8_t win_ret = WINDOWS_STATUS_DIS_ONLY;
    system_digimon_battle_select(subidx);
    return win_ret;
}

uint8_t digi04_battle_btn_select(void *arg)
{
    if (page == 0)
    {
        subidx++;
        if (subidx > 2)
        {
            subidx = 0;
        }
    }

    return WINDOWS_STATUS_DIS_ONLY;
}

uint8_t digi04_battle_btn_enter(void *arg)
{
    if (page == 0)
    {
        page++;
    }
    return WINDOWS_STATUS_DIS_ONLY;
}

uint8_t digi04_battle_btn_exit(void *arg)
{
    page = 0;
    Dsystem.windows_cur_id = WIN_UI_DIGIMON;
    return WINDOWS_STATUS_INIT;
}
